package database.local;

import android.graphics.drawable.Drawable;

public class DrawableHolder {
	Drawable selectedIcon, defaultIcon;
	
	public DrawableHolder(Drawable sel, Drawable def) {
		selectedIcon = sel;
		setBounds(selectedIcon);
		
		defaultIcon = def;
		setBounds(defaultIcon);
	}
	
	
	protected void setBounds(Drawable icon) {
		icon.setBounds(- ((int)icon.getIntrinsicWidth()/2), - ((int)icon.getIntrinsicHeight()/2),
				((int) icon.getIntrinsicWidth()/2 ),((int) icon.getIntrinsicHeight()/2));
	}
	
	public Drawable getSelectedIcon() {
		return selectedIcon;
	}
	
	public Drawable getDefaultIcon() {
		return defaultIcon;
	}
}
